#ifdef __cplusplus
extern "C" {
#endif

#ifndef _MLOG_H_
#define _MLOG_H_

#include "stdint.h"

#define LOG_LEVEL_DEBUG 0
#define LOG_LEVEL_INFO 1
#define LOG_LEVEL_WARN 2
#define LOG_LEVEL_ERROR 3


extern int LOG_LEVEL;

int mlog_debug(const char *fmt,...);
int mlog_info(const char *fmt,...);
int mlog_info_hex_buffer(uint8_t* data,uint16_t len);
#endif

#ifdef __cplusplus
}
#endif